# cmake needs this line
cmake_minimum_required(VERSION 3.1)

# Find OpenCV, you may need to set OpenCV_DIR variable
# to the absolute path to the directory containing OpenCVConfig.cmake file
# via the command line or GUI
find_package(OpenCV 4 REQUIRED)

# If the package has been found, several variables will
# be set, you can find the full list with descriptions
# in the OpenCVConfig.cmake file.
# Print some message showing some of them
message(STATUS "OpenCV library status:")
message(STATUS "    config: ${OpenCV_DIR}")
message(STATUS "    version: ${OpenCV_VERSION}")
message(STATUS "    libraries: ${OpenCV_LIBS}")
message(STATUS "    include path: ${OpenCV_INCLUDE_DIRS}")


set(apriltag_LIB "/home/john/LJJ_SRC/disk/apriltag/build/libapriltag.so") 
set(apriltag_INCLUDE_DIRS "/home/john/LJJ_SRC/disk/apriltag/") 

MESSAGE("apriltag_LIBDIR")
MESSAGE(${apriltag_INCLUDE_DIRS})
MESSAGE(${apriltag_LIB})


include_directories(${apriltag_INCLUDE_DIRS})

SET(LIB_SRC main.cpp)

add_executable (main ${LIB_SRC})


target_link_libraries(main ${OpenCV_LIBS} ${apriltag_LIB})
